package com.cosmoplat.xikai.business.domain.dto.mes;

import com.cosmoplat.xikai.business.domain.BaseWorkOrder;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import javax.validation.constraints.NotBlank;

/**
 * @ClassName ProductionPlanByMesDTO
 * @Description TODO
 * @Author wdf
 * @Date 2025/1/7
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class ProductionPlanByMesDTO extends BaseWorkOrder {

    /** 文件导入 */
    private Boolean isFileImport = false;

    /**
     * 派工单ID
     *  mes 的字段为  orderID 给原来的 orderId 赋值
     */
    @ApiModelProperty(value = "派工单ID", required = true, example = "WO001")
    @NotBlank(message = "派工单ID不能为空")
    private String orderID;

    public String getOrderID() {
        super.setOrderId(orderID);
        return orderID;
    }
}
